import request from '@/utils/request'

// 获取所有班级数据
export function getClassList() {
  return request({
    url: '/admin/expschedule/class/getClassList',
    method: 'GET'
  })
}

// 添加班级
export function addClass(form) {
  return request({
    url: '/admin/expschedule/class/saveClass',
    method: 'POST',
    data: form
  })
}

// 删除班级
export function deleteClass(id) {
  return request({
    url: `/admin/expschedule/class/remove/${id}`,
    method: 'DELETE'
  })
}
